import { Vue2, install, isVue2 } from 'vue-demi';

import { beforeAll } from 'vitest';

const setupVueSwitch = () => {
  if (isVue2) {
    Vue2.config.productionTip = false;
    Vue2.config.devtools = false;
    install(Vue2);
  }
};

setupVueSwitch();

beforeAll(() => {
  setupVueSwitch();
});
